package com.learn.spring5.collectiontype;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Stu
{
	// 1.数组型属性
	private String[] courses;

	// 2.list集合类型属性
	private List<String> list;

	// 3.map集合类型属性
	private Map<String, String> maps;

	// 4.set集合类型属性
	private Set<String> sets;
	
	// 学生所学多门课程
	private List<Course> courseList;
	
	public void setCourseList(List<Course> courseList)
	{
		this.courseList = courseList;
	}

	public String[] getCourses()
	{
		return courses;
	}

	public void setCourses(String[] courses)
	{
		this.courses = courses;
	}

	public List<String> getList()
	{
		return list;
	}

	public void setList(List<String> list)
	{
		this.list = list;
	}

	public Map<String, String> getMaps()
	{
		return maps;
	}

	public void setMaps(Map<String, String> maps)
	{
		this.maps = maps;
	}

	public Set<String> getSets()
	{
		return sets;
	}

	public void setSets(Set<String> sets)
	{
		this.sets = sets;
	}

	public void test()
	{
		System.out.println(Arrays.deepToString(courses));
		System.out.println(list);
		System.out.println(maps);
		System.out.println(sets);
		System.out.println(courseList);
	}

}
